package com.uh.calculation.batchJdbc;

import com.uh.microservice.core.dao.JdbcDao;

public class SqlThread  implements Runnable {

    private JdbcDao jdbcDao;

    private String  sql;


    public SqlThread(String  sql,JdbcDao jdbcDao){
        this.sql=sql;
        this.jdbcDao=jdbcDao;

    }


    @Override
    public void run() {

        //System.out.println(sql);

        jdbcDao.insert(sql);

    }
}
